#include "stdafx.h"
#include "Editor.h"
#include "ui_Editor.h"
namespace tnmujoy
{
namespace uranus
{
//-------------------------------------------------------------------------
Editor::Editor(QObject* _parent)
	: QObject(_parent)
{
    
}
//-------------------------------------------------------------------------
Editor::~Editor()
{
    SAFE_DELETE(myUiClass_);
}

//-------------------------------------------------------------------------
void Editor::initialize()
{
    mainWindowPtr_ = MainWindowPtr(new QMainWindow());
    myUiClass_ = new Ui::EditorFormClass();
    myUiClass_->setupUi(mainWindowPtr_.data());

    initializeMenubar();
    setupAction();
}
//-------------------------------------------------------------------------
void Editor::run()
{
    mainWindowPtr_->show();
}

//-------------------------------------------------------------------------
void Editor::initializeMenubar()
{

}
//-------------------------------------------------------------------------
void Editor::setupAction()
{
    connect(myUiClass_->action_execItemEditor, SIGNAL(triggered(bool)),
        this, SIGNAL(SiExecItemExEditor()));
}

//-------------------------------------------------------------------------
}//namespace uranus
}//namespace tnmujoy